import java.awt.*;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

/**
 * Created by Scott Tiger.
 * User: tomaszsocha
 * Date: 2010-08-06
 * Time: 13:59:18
 */


public class Pobierz {
    public static String pobierz(String adres)
            throws MalformedURLException, IOException {
        URL url = new URL(adres);
        return (String) url.getContent();
    }

    public static Image pobierzObrazek(String adres)
            throws MalformedURLException, IOException {
        URL url = new URL(adres);
        return (Image) url.getContent();
    }

    public static void main(String[] args)
            throws MalformedURLException, IOException {
        System.out.println(pobierz(args[0]));
    }
}